
package com.study.manage.dto;

import java.io.Serializable;

/**
 * 类名：JsonResponseBean.java<br>
 * 作者：周燚<br>
 *
 * 类说明：Ajax用json返回对象<br>
 * 修改记录：
 */
public class JsonResponseBean implements Serializable {

	/** serialVersionUID */
	private static final long serialVersionUID = 2736116718240563416L;

	/** 实行状态 */
	private boolean success;

	/** 返回的对象 */
	private Object obj = null;

	/** 返回信息 */
	private String msg = null;

	/** 返回code */
	private String code = "000";

	public JsonResponseBean(boolean success) {
		this.success = success;
	}
	
	public JsonResponseBean(boolean success,String msg) {
		this.success = success;
		this.msg = msg;
	}
	
	public JsonResponseBean(Object obj,boolean success) {
		this.obj = obj;
		this.success = success;
	}

	public JsonResponseBean(boolean success, Object obj, String msg, String code) {
		super();
		this.success = success;
		this.obj = obj;
		this.msg = msg;
		this.code = code;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
